package dat255.calendarclock.model.event.interval;

import java.util.GregorianCalendar;

/**
 * @author Gabriel Andersson
 */
public class MonthlyInterval extends Interval{
	/**
	 * needed to store in files with objectOutputStream;
	 */
	private static final long serialVersionUID = -7317499590258751155L;
	//Field
	
	private boolean[] values;
	
	/**
	 * 
	 * 
	 * NOT YET IMPLEMENTED CLASS
	 * 
	 * 
	 * @param activeDays the array of size 31 holding information about occurrence.
	 * @throws IllegalArgumentException if length of param is wrong.
	 */
	private MonthlyInterval(boolean[] activeDays){
//		if(activeDays.length!=31)
//			throw new IllegalArgumentException("Length must be 31, not "+activeDays.length+"!");
//		this.activeDays=activeDays;
		
	}
	
	
	@Override
	public GregorianCalendar nextDateOfEvent(GregorianCalendar currentDate) {
		return null;
	}
	
	public boolean[] getValues() {
		return values;
	}

	@Override
	public boolean equals(Interval interval) {
		if(interval instanceof MonthlyInterval) {
			return this.values.equals(((MonthlyInterval) interval).getValues());
		}
		else {
			return false;
		}
	}
}
